﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entities
{
    public interface ITaiKhoanRepository
    {
         TaiKhoan GetByTenUser(string tenUser);
         TaiKhoan GetByNguoiDung(string nguoiDung);
         bool KiemTraDangNhap(string ten, string pass);
         IQueryable<TaiKhoan> GetAll();
         bool AddNew(TaiKhoan tkhoan);
         bool Update(TaiKhoan tkhoan);
         bool Delete(TaiKhoan tkhoan);
         List<TaiKhoan> TimTheoTenNguoiDN(string tennd);
         List<TaiKhoan> TimTheoTenTaiKhoan(string user);
    }
}
